	<div id="paging">
        <!-- First page link -->
        <?php if (isset($this->previous)): ?>
              <a href="<?= $this->url(array('page' => $this->first)); ?>"><?=$this->translate('нач.')?></a> 
        <?php else: ?>
                <span class="disabled"><?=$this->translate('нач.')?></span> 
        <?php endif; ?>
    
        <!-- Previous page link -->
    
        <?php if (isset($this->previous)): ?>
              <a href="<?= $this->url(array('page' => $this->previous)); ?>">&larr;</a> 
        <?php else: ?>
            <span class="disabled">&larr;</span>
        <?php endif; ?>

        
        <!-- Numbered page links -->
        <?php foreach ($this->pagesInRange as $page): ?>
            <?php if (($page != $this->current) && ($page > (int)($this->current)-4) && $page < $this->current): ?>
                <a href="<?= $this->url(array('page' => $page)); ?>"><?=$page?></a><?=($page != $this->last ? ' | ' : '')?>
            <?php endif; ?>
        <?php endforeach; ?>      

        <!-- Numbered page links -->
        <?php foreach ($this->pagesInRange as $page): ?>
            <?php if (($page == $this->current)): ?>
                <?=$page?><?=($page != $this->last ? ' | ' : '')?>
            <?php endif; ?>
        <?php endforeach; ?>
        
        <!-- Numbered page links -->
        <?php foreach ($this->pagesInRange as $page): ?>
            <?php if (($page != $this->current) && ($page < (int)($this->current)+4) && $page > $this->current): ?>
                <a href="<?= $this->url(array('page' => $page)); ?>"><?=$page?></a><?=($page != ($this->current)+3 ? ' | ' : '')?>
            <?php endif; ?>
        <?php endforeach; ?>        
                



        <!-- Next page link -->
        <?php if (isset($this->next)): ?>
              <a href="<?= $this->url(array('page' => $this->next)); ?>">&rarr;</a> 
        <?php else: ?>
            <span class="disabled">&rarr;</span>
        <?php endif; ?>
        <!-- Last page link -->
        <?php if (isset($this->next)): ?>
              <a href="<?= $this->url(array('page' => $this->last)); ?>"><?=$this->translate('кон.')?></a>
        <?php else: ?>
            <span class="disabled"><?=$this->translate('кон.')?></span>
        <?php endif; ?>
 </div>